import axios from '@/libs/request'

export const insert = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/saveMuchInfo',
    data: data,
    type: 'post'
  })
}

export const findPageList = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/muchInfoList',
    data: data,
    type: 'post'
  })
}

export const deleteRequest = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/deleteMuchInfo',
    data: data,
    type: 'post'
  })
}

export const findList = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/getMuchInfo',
    data: data,
    type: 'get'
  })
}

// 单位接口
export const getDepartmentList = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/jwCodeList',
    data: data,
    type: 'get'
  })
}

// 使用状况
export const getUsage = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/codeList?type=sy_type',
    data: data,
    type: 'get'
  })
}

// 招标情况
export const getTender = (data) => {
  return axios.request({
    url: '/api/as/cme2/yqsendinfo/codeList?type=zb_type',
    data: data,
    type: 'get'
  })
}
